import request from '@/utils/request'

// 查询出账类别列表
export function listBankOutcome(query) {
  return request({
    url: '/supplier/bankOutcome/list',
    method: 'get',
    params: query
  })
}

// 查询出账类别详细
export function getBankOutcome(id) {
  return request({
    url: '/supplier/bankOutcome/' + id,
    method: 'get'
  })
}

// 新增出账类别
export function addBankOutcome(data) {
  return request({
    url: '/supplier/bankOutcome',
    method: 'post',
    data: data
  })
}

// 修改出账类别
export function updateBankOutcome(data) {
  return request({
    url: '/supplier/bankOutcome',
    method: 'put',
    data: data
  })
}

// 删除出账类别
export function delBankOutcome(id) {
  return request({
    url: '/supplier/bankOutcome/' + id,
    method: 'delete'
  })
}

// 导出出账类别
export function exportBankOutcome(query) {
  return request({
    url: '/supplier/bankOutcome/export',
    method: 'get',
    params: query
  })
}